<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>IGNORED</title>
    </h:head>
    <h:body>
        <h:form>
            <div align="right">
                <h:panelGrid border="0" columns="3">
                    <h:commandLink action="#{lc.setEngelsk()}">
                        <h:graphicImage library="images" name="UK.png" style="border: 0px; margin-right: 1em"/>
                    </h:commandLink>
                    <h:commandLink action="#{lc.setNorsk()}">
                        <h:graphicImage library="images" name="Norway.png" style="border: 10px;"/>
                    </h:commandLink>
                    <h:commandLink action="/login.xhtml?faces-redirect=true" value="#{tekster.login}" styleClass="button" rendered="#{!rb.sjekkBruker()}"/>
                    <h:commandLink action="#{rb.logut()}" value="#{tekster.logut}" styleClass="button" rendered="#{rb.sjekkBruker()}"/>
                </h:panelGrid>
            </div>
            <div align="center">
                <h:commandLink action="/index?faces-redirect=true">
                    <h:graphicImage library="images" styleClass="topp" name="#{tekster.bilde_top}"/>
                </h:commandLink>
                <h:panelGrid columns="5">
                    <h:commandButton styleClass="button" value="#{tekster.hjem}" action="/index?faces-redirect=true"/>
                    <h:commandButton styleClass="button" value="#{tekster.registrer21}" action="/regDeltaker?faces-redirect=true"/>
                    <h:commandButton styleClass="button" value="#{tekster.utskrift_overskrift1}" action="/utskriftDeltakere?faces-redirect=true"/>
                    <h:commandButton styleClass="button" value="#{tekster.utskrift_overskrift2}" action="/utskriftLop?faces-redirect=true"/>
                    <h:commandButton styleClass="button" value="#{tekster.utskrift_overskrift3}" action="/utskriftResultat?faces-redirect=true"/>
                </h:panelGrid>
                <h:panelGrid columns="4" rendered="#{rb.sjekkBruker()}">
                    <h:commandButton styleClass="button" value="#{tekster.registrer41}" action="/Admin/regResultat?faces-redirect=true" rendered="#{rb.sjekkAdmin()}"/>
                    <h:commandButton styleClass="button" value="#{tekster.utskrift_overskrift4}" action="/redigerBruker?faces-redirect=true" rendered="#{rb.sjekkAdmin()}"/>
                    <h:commandButton styleClass="button" value="#{tekster.utskrift_overskrift44}" action="/redigerBruker?faces-redirect=true" rendered="#{!rb.sjekkAdmin()}"/>
                    <h:commandButton styleClass="button" value="#{tekster.registrer31}" action="/Bruker/regDeltakerPaaLop?faces-redirect=true" rendered="#{rb.sjekkAdmin()}" />          
                    <h:commandButton styleClass="button" value="#{tekster.registrer32}" action="/Bruker/regDeltakerPaaLop?faces-redirect=true" rendered="#{!rb.sjekkAdmin()}"/>          
                    <h:commandButton styleClass="button" value="#{tekster.registrer11}" action="/Admin/regLop?faces-redirect=true" rendered="#{rb.sjekkAdmin()}"/>
                </h:panelGrid>
            </div>
            <ui:debug hotkey="i"/>
        </h:form>
    </h:body>
</html>